source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/KineMasterCorp/NexPods.git'

platform :ios, '11.4'
workspace 'Kinemaster'
project 'Kinemaster.xcodeproj'

def min_common_pods
    pod 'MarqueeLabel', '3.1.0'
end

def common_pods
    min_common_pods
    pod 'Protobuf', '~> 3.9', :inhibit_warnings => true
    pod 'objective-zip', '1.0.3', :inhibit_warnings => true
    pod 'AFNetworking', '4.0.0', :inhibit_warnings => true
    pod 'SVGgh', '1.11.1', :inhibit_warnings => true
    pod 'gdata-objectivec-client', :inhibit_warnings => true
    pod 'lottie-ios', '2.5.0', :inhibit_warnings => true
    pod 'DSJSONSchemaValidation', :inhibit_warnings => true
    pod 'TRReverse', '1.0.2', :inhibit_warnings => true
    pod 'ReSwift', :inhibit_warnings => true
    pod 'R.swift', '~> 5.0', :inhibit_warnings => true
end

def nex_pods
    pod 'NexEditorEngine', '2.16.33', :inhibit_warnings => true
end

def km_dev_pods
    pod 'KMAssetDecryption', :path => 'frameworks/KMAssetDecryption'
end

def scene_pods
    pod 'SnapKit'
end

def firebase_pods
    pod 'Firebase', '~> 6.30', :inhibit_warnings => true
    pod 'Firebase/Core', :inhibit_warnings => true
    pod 'Firebase/Database', :inhibit_warnings => true
    pod 'Firebase/Auth', :inhibit_warnings => true
    pod 'Firebase/RemoteConfig', :inhibit_warnings => true
    pod 'Firebase/DynamicLinks', :inhibit_warnings => true
    pod 'Firebase/Messaging', :inhibit_warnings => true
    pod 'Firebase/InAppMessaging', :inhibit_warnings => true
    pod 'GoogleUtilities', :inhibit_warnings => true
end

def crashlytics_pods
    pod 'Firebase/Crashlytics', :inhibit_warnings => true
    pod 'Firebase/Analytics', :inhibit_warnings => true
end

def googleclient_pods
    pod 'GoogleAPIClientForREST/YouTube', '~> 1.4'
    pod 'GoogleSignIn', '~> 5.0'
end

def facebook_pods
    pod 'FBSDKCoreKit', '~> 7', :inhibit_warnings => true
    pod 'FBSDKShareKit', '~> 7', :inhibit_warnings => true
    pod 'FBSDKLoginKit', '~> 7', :inhibit_warnings => true
end

def engagement_tracker_pods
    pod 'AppsFlyerFramework', :inhibit_warnings => true
end

def advertisement_pods
    pod 'Google-Mobile-Ads-SDK', :inhibit_warnings => true
    pod 'Firebase/AdMob', :inhibit_warnings => true
end

target 'KineMaster PROD' do
    use_frameworks! :linkage => :static
    project 'Kinemaster.xcodeproj'
    common_pods
    nex_pods
    km_dev_pods
    firebase_pods
    crashlytics_pods
    googleclient_pods
    facebook_pods
    engagement_tracker_pods
    advertisement_pods
    
    target 'KinemasterTests' do
        inherit! :search_paths
        pod 'Protobuf', '~> 3.9', :inhibit_warnings => true
        pod 'FBSDKCoreKit', '~> 7', :inhibit_warnings => true
    end
end

target 'KMNotiServiceExtension' do
    use_frameworks! :linkage => :static
    pod 'Firebase/Messaging', :inhibit_warnings => true
    pod 'GoogleUtilities', :inhibit_warnings => true
end
